﻿using D.B.Data.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace D.B.Data.Infrastructuse
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class DataDbContext:DbContext
    {
        public DataDbContext(DbContextOptions options) : base(options)
        {
        }

 
        public DbSet<AccountModel> AccountModels { get; set; }
        public DbSet<AddressModel> AddressModels { get; set; }
        public DbSet<UserModel> UserModels { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
       public DbSet<RoleModel> RoleModels { get; set; }
        /// <summary>
        /// 用户角色表
        /// </summary>
       public DbSet<UserRoleModel> UserRoleModels { get; set; }
       public DbSet<MenusModel> MenusModels { get; set; }
        /// <summary>
        /// 角色菜单中间表
        /// </summary>
       public DbSet<RoleMenusModel> RoleMenusModels { get; set; }
        public DbSet<WorkflowModel> WorkflowModels { get; set; }
        public DbSet<DeptModel> DeptModels { get; set; }




    }
}
